﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Effects - Custom</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#btn-x").click(
                function() {
                    $("div").animate({ left: "+=10px" }, 1000);
                }
            );
            $("#btn-y").click(
                function() {
                    $("div").animate({ top: "+=10px" }, 1000);
                }
            );
        });  
    </script>
    <style type="text/css">
        div
        {
            width:230px;
            height:30px;
            border:dashed 1px #000;
            padding:5px;
            margin:5px;
            background-color:Red;
        }
    </style>
</head>
<body>
    <input id="btn-x" type="button" value="move x" />
    <input id="btn-y" type="button" value="move y" />
    <div style="position:absolute;top:50px;left:10px;"></div>
</body>
</html>
